/**
 * Copyright &copy; 2012-2015 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.soccer.cms.modules.gen.utils;

import java.util.List;

import com.google.common.collect.Lists;
import com.soccer.cms.common.utils.SpringContextHolder;

import com.soccer.cms.modules.gen.entity.GenReferentity;
import com.soccer.cms.modules.gen.dao.GenReferentityDao;

/**
 * 关联实体Utils
 * @author zouqh
 * @version 2015-05-25
 */
public class GenReferentityUtils {

	private static GenReferentityDao genReferentityDao = SpringContextHolder.getBean(GenReferentityDao.class);
	
	public static GenReferentity getGenReferentity(String id) {
		return genReferentityDao.get(id);
	}
	
	public static List<GenReferentity> getGenReferentityList() {
		List<GenReferentity> genReferentitys = null;
		GenReferentity genReferentity = new GenReferentity();
		genReferentitys = genReferentityDao.findList(genReferentity);
		if(genReferentitys == null){
			genReferentitys = Lists.newArrayList();
		}
		return genReferentityDao.findList(genReferentity);
	}
	
	
}